//
//  SINAStuApproveUserNameViewController.m
//  sinashebao
//
//  Created by  androidlongs on 2018/1/26.
//  Copyright © 2018年  androidlongs. All rights reserved.
//

#import "SINAStuApproveUserNameViewController.h"
#import "SINACircularBeadUtils.h"

@interface SINAStuApproveUserNameViewController ()

@end

@implementation SINAStuApproveUserNameViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title=@"学生认证";
    [self initViewFunction];
}
-(void) initViewFunction{
    UIScrollView *mainScrollView = [[UIScrollView alloc]initWithFrame:CGRectMake(0, 0, mainW, mainH-49)];
    mainScrollView.contentSize=CGSizeMake(mainW, mainH+10);
    [self.view addSubview:mainScrollView];
    [self.view setBackgroundColor:[UIColor colorWithHexString:@"#eeeeee"]];
    
    UIView *itemView1 =[[UIScrollView alloc]initWithFrame:CGRectMake(0, 22, mainW, 48)];
    [itemView1 setBackgroundColor:[UIColor whiteColor]];
    [mainScrollView addSubview:itemView1];
    
    
    
    UILabel *titleLabel = [[UILabel alloc]initWithFrame:CGRectMake(15, CGRectGetHeight(itemView1.frame)/2-10, mainW-30, 21)];
    titleLabel.text=@"姓名";
    [titleLabel setFont:[UIFont systemFontOfSize:16]];
    titleLabel.textColor=[UIColor colorWithHexString:@"#212121"];
    
    [itemView1 addSubview:titleLabel];
    
    UITextField *inputTextField = [[UITextField alloc]initWithFrame:CGRectMake(55, CGRectGetHeight(itemView1.frame)/2-17, mainW-45, 36)];
    
    [inputTextField setFont:[UIFont systemFontOfSize:16]];
    inputTextField.textColor=[UIColor colorWithHexString:@"#212121"];
    inputTextField.placeholder=@"请输入真实姓名";
    
    [itemView1 addSubview:inputTextField];
    
    
    UILabel *nextLabel = [[UILabel alloc]initWithFrame:CGRectMake(15, CGRectGetMaxY(itemView1.frame)+48, mainW-30, 42)];
    nextLabel.text=@"下一步";
    nextLabel.textAlignment=NSTextAlignmentCenter;
    [nextLabel setFont:[UIFont systemFontOfSize:20]];
    nextLabel.textColor=[UIColor colorWithHexString:@"#ffffff"];
    [SINACircularBeadUtils makeCircularBead:1 andView:nextLabel andIsSetBackground:YES];
    [mainScrollView addSubview:nextLabel];
    
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
   
}

@end
